import axiosConfig from "../axios/axiosConfig"

function getOrderList(data) {
    return axiosConfig({
        url: "/order/queryOrders",
        method: "post",
        data
    })
}

function addOrder(data) {
    return axiosConfig({
        url: "/order/addOrder",
        method: "post",
        data
    })
}

function deleteOrder(data) {
    return axiosConfig({
        url: "/order/deleteOrder",
        method: "post",
        data
    })
}

function updateOrder(data) {
    return axiosConfig({
        url: "/order/updateOrder",
        method: "post",
        data
    })
}

export default {
    getOrderList,
    addOrder,
    deleteOrder,
    updateOrder
}